package com.br.whereismijao;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class WhereIsMijaoActivity extends Activity{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button jogar =  (Button) findViewById(R.id.button1);
        Button Ranking = (Button) findViewById(R.id.button2);
        Button ajuda =  (Button) findViewById(R.id.button3);
        Button sair = (Button) findViewById(R.id.button4);
        Button voltar = (Button) findViewById(R.id.button5);
        
        ajuda.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				onPause();
				setContentView(R.layout.ajuda);
				Button voltar = (Button) findViewById(R.id.button5);
				voltar.setOnClickListener(new OnClickListener() {
					@Override
					public void onClick(View v) {
						
						Intent intent =  new Intent("com.br.whereismijao.MAIN");
						startActivity(intent);
					}
				});
			}
		});
        
    }
}	 